<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@ taglib prefix="s" uri="/struts-tags"%>
	
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>loginIn</title>
</head>
<body>
<s:debug></s:debug>
	<h3>if elseif else标签</h3>
	<s:set name="age" value="27"/>
	<s:if test="#age>60">
	   老年人
	</s:if>
	<s:elseif test="#age>35">
	 中年人
	</s:elseif>
	<s:else>
	年轻人
	</s:else>
	
	 <h3>iterator标签</h3> 
	 <s:iterator value="{'a','b','c','d'}" var="u" status="f">
	    <table border="1" width="300">
	      <tr <s:if test="#f.even">
	            Style="background-color:#991111"
	            </s:if>>
	         <td><s:property value="u"/></td>
	      </tr>
	  </table>
	 </s:iterator>
	 
	 <s:iterator value="#{'a':'10','b':'20','c':'30'} ">
	   <table border="1" width="300">
	      <tr>
	         <td><s:property value="key"/></td>
	         <td><s:property value="value"/></td>
	      </tr>
	  </table>
	 </s:iterator>
	 
	 <h3>append标签</h3>  
	 
	 <s:append var="newmap">
	   <s:param value="#{'a':'10','b':'20'}"></s:param>
	   <s:param value="#{'c':'10','d':'20'}"></s:param>
	 </s:append>
	  <s:iterator value="#newmap">
	   <table border="1" width="300">
	      <tr>
	         <td><s:property value="key"/></td>
	         <td><s:property value="value"/></td>
	      </tr>
	  </table>
	 </s:iterator> 
	 <h3>merge标签</h3>
	 <s:merge var="newlist">
	   <s:param value="#{'a':'10','b':'20'}"></s:param>
	   <s:param value="#{'c':'10','d':'20'}"></s:param>
	 </s:merge>
	  
	   <s:iterator value="#newlist">
	   <table border="1" width="300">
	      <tr>
	         <td><s:property value="key"/></td>
	         <td><s:property value="value"/></td>
	      </tr>
	  </table>
	 </s:iterator> 
	 <h3>generator标签</h3>  
	 <s:generator val="'疯狂java讲义,c语言程序设计,计算机组成原理'"  separator=","
	     var="book"/>
	     
	    <table border="1" width="300"> 
	  <s:iterator value="#book" var="b">   
	      <tr>
	         <td><s:property value="b"/></td>      
	      </tr>	 
	 </s:iterator>  
	  </table>
	 
	 <h3>subset标签</h3> 
	 <s:bean var="myDec" 
	 name="org.jluzhCS.mylogin.util.myDecider"/> 
	 <s:subset source="{'疯狂java讲义','c语言程序设计','计算机组成原理'}"
	  decider="myDec" var="newlist"></s:subset>
	  
	    <table border="1" width="300"> 
	  <s:iterator value="#attr.newlist" var="b">   
	      <tr>
	         <td><s:property value="b"/></td>      
	      </tr>	 
	 </s:iterator>  
	  </table>
	 <h3>sort标签</h3>  
	 <s:bean var="myCom"
	  name="org.jluzhCS.mylogin.util.myCompare"/>
	  <s:sort source="{'疯狂java讲义','c语言程序设计','计算机组成原理'}"
	  comparator="myCom" var="newbook"/>
	   <table border="1" width="300"> 
	  <s:iterator value="#attr.newbook" var="b">   
	      <tr>
	         <td><s:property value="b"/></td>      
	      </tr>	 
	 </s:iterator>  
	  </table>
</body>
</html>